在redis.conf中添加配置(如果配置已存在就修改): loglevel notice#日志等级 logfile "/usr/redis/log/redis.log"#日志保存路径 启动的时候,指定该配置文件redis.conf